FROM java:8

VOLUME /tmp

ADD consul-producer-0.0.1.jar /app.jar
ADD application.properties /application.properties

RUN bash -c 'touch /app.jar'

EXPOSE 8081

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-server", "-jar", "/app.jar"]